//
//  PKRegisterView.m
//  PianKe
//
//  Created by lanou on 15/12/24.
//  Copyright © 2015年 MaZeGong. All rights reserved.
//

#import "HWRegisterView.h"

@implementation HWRegisterView

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        
        _nameView = [[HWLoginView alloc] initWithFrame:CGRectMake(10, 114, kScreenWidth - 20, 40)];
        [self addSubview:_nameView];
        
        _emailView = [[HWLoginView alloc] initWithFrame:CGRectMake(10, _nameView.bottom + 20, kScreenWidth - 20, 40)];
        [self addSubview:_emailView];
        
        _passwordView = [[HWLoginView alloc] initWithFrame:CGRectMake(10, _emailView.bottom + 20, kScreenWidth - 20, 40)];
        [self addSubview:_passwordView];
        
        
        _finishButton = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _finishButton.frame = CGRectMake(10, _passwordView.bottom + 100, kScreenWidth - 20, 40);
        _finishButton.backgroundColor = [UIColor colorWithRed:39.0f / 255.0f green:134.0f / 255.0f blue:34.0f / 255.0f alpha:1];
        _finishButton.layer.masksToBounds = YES;
        _finishButton.layer.cornerRadius = 3;
        [self addSubview:_finishButton];
        
        _finishLabel = [[UILabel alloc] initWithFrame:CGRectMake((kScreenWidth - 300) / 2, 610, 250, 20)];
        [self addSubview:_finishLabel];
        
        
    }
    return self;
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
